if object_id('ClassInsert') is not null
	drop proc ClassInsert
	
go

create proc ClassInsert
	@Name nvarchar(20),
	@RegimeID int, 
	@CourseID int
as
begin
	insert into Class (Name, RegimeID, CourseID) values (@Name, @RegimeID, @CourseID)
	select scope_identity()
end	